#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Create by zhang
# Create on 2022/6/25 22:36
from infrastructure.constants.request_method_enum import RequestMethodEnum
from infrastructure.util.selenium_spider import SpiderUrl, SeleniumSpider2JsonConfiguration, spider2json

def xueqiu_spider():
    configuration = SeleniumSpider2JsonConfiguration()
    configuration.add_prepose_url("https://xueqiu.com/S/SZ000063", method=RequestMethodEnum.get)
    data_url = "https://stock.xueqiu.com/v5/stock/finance/cn/balance.json?symbol=SZ000063&type=all&is_detail=true&count=5&timestamp=1656168356228"
    configuration.set_data_url(data_url)
    data = spider2json(configuration)
    print()


